package com.sun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Locale;

/**
 * 国际化测试
 * @author sun
 */
@Controller
public class I18nTest {

    @RequestMapping("/login")
    public String toLogin(Locale locale){
        //输出国际化信息
        System.out.println(locale);
        return "login";
    }
}
